* @throws MWException
* @param User $user
* @param IContextSource $context
- * @param array defaultPreferences to load values for
+ * @param array $defaultPreferences Array to load values for
* @return array|null
*/
static function loadPreferenceValues( $user, $context, &$defaultPreferences ) {
*/
static function searchPreferences( $user, IContextSource $context, &$defaultPreferences ) {
foreach ( MWNamespace::getValidNamespaces() as $n ) {
- $defaultPreferences[ 'searchNs' . $n ] = array(
+ $defaultPreferences['searchNs' . $n] = array(
'type' => 'api',
);
}